package itdep.domain.student;


import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.TranslationType;

import java.util.Collection;

/**
 * @author Mari
 * @version $Revision: 11 $ $Date: 2010-06-16 10:18:57 +0000 (Wed, 16 Jun 2010) $
 */
public enum UserMarkType implements OrderedEnum, Translatable {
	MARK_0(0, "mark-0"),
	MARK_1(1, "mark-1");

	private TranslationType translationType = TranslationType.STANDARD;
	private String type = "flag";
	private int order;
	private String code;

	UserMarkType(int order, String code) {
		this.order = order;
		this.code = code;
	}

	public int getOrder() {
		return order;
	}

	public String getTranslationType() {
		return type;
	}

	public String getTranslationCode() {
		return code;
	}

	public Collection<String> getTranslationVariants() {
		return translationType.getVariants();
	}
}